package cn.aopmin.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

/**
 * 点赞事件
 * @author 白豆五
 * @since 2025/3/15
 */
@Getter
public class LikedTaskEvent extends ApplicationEvent {

    private Map<String, Object> entity;

    /**
     *
     * @param source 事件源
     * @param entity 传递的数据
     */
    public LikedTaskEvent(Object source, Map<String, Object> entity) {
        super(source);
        this.entity = entity;
    }
}